import request from '@/utils/request'

// 查询座位信息列表
export function listSeat(query) {
  return request({
    url: '/cinema/cinema/seat/list',
    method: 'get',
    params: query
  })
}

// 查询座位信息详细
export function getSeat(seatId) {
  return request({
    url: '/cinema/cinema/seat/' + seatId,
    method: 'get'
  })
}

// 新增座位信息
export function addSeat(data) {
  return request({
    url: '/cinema/cinema/seat',
    method: 'post',
    data: data
  })
}

// 修改座位信息
export function updateSeat(data) {
  return request({
    url: '/cinema/cinema/seat',
    method: 'put',
    data: data
  })
}

// 删除座位信息
export function delSeat(seatId) {
  return request({
    url: '/cinema/cinema/seat/' + seatId,
    method: 'delete'
  })
}

// 导出座位信息
export function exportSeat(query) {
  return request({
    url: '/cinema/cinema/seat/export',
    method: 'get',
    params: query
  })
}